home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 50
/
Volume 50 - JOGO DISK .iso
/
Games
/
moonstonemadness.swf
/
scripts
/
__Packages
/
Library
/
Utils
/
Delegate.as
next >
Wrap
Text File
|
2007-09-27
|
710b
|
31 lines
class Library.Utils.Delegate extends Object
{
function Delegate()
{
super();
}
function DelegateArgs(f)
{
this.func = f;
}
static function create(obj, func)
{
var _loc2_ = function()
{
var _loc3_ = arguments.callee.target;
func = arguments.callee.func;
var _loc2_ = arguments.callee.arg;
_loc2_ = _loc2_.concat(arguments);
return func.apply(_loc3_,_loc2_);
};
_loc2_.target = obj;
_loc2_.func = func;
_loc2_.arg = arguments.slice(2);
return _loc2_;
}
function createDelegate(obj)
{
return Library.Utils.Delegate.create(obj,this.func);
}
}